﻿Imports System.ComponentModel.DataAnnotations
Imports System.ComponentModel.DataAnnotations.Schema

<Table("Devolucion")>
Public Class Devolucion
    Implements IEntity

    <Key()>
    <DatabaseGenerated(DatabaseGeneratedOption.Identity)>
    Public Property IdDevolucion As Integer

    Public Property Cantidad() As Integer

    Public Property Fecha() As DateTime

    Public Property Monto() As Decimal

    <StringLength(100)>
    Public Property Observacion() As String

    Public Property IdCliente() As Integer

    <ForeignKey("IdCliente")>
    Public Overridable Property Cliente() As Cliente

    Public Property IdBandeja() As Integer

    <ForeignKey("IdBandeja")>
    Public Overridable Property Bandeja() As Bandeja

    <NotMapped()>
    Public Property ID() As Integer Implements IEntity.ID
        Get
            Return IdDevolucion
        End Get
        Set(ByVal value As Integer)
            IdDevolucion = value
        End Set
    End Property
End Class
